
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri = "http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <link rel="stylesheet" href="gastozero.css" type="text/css">
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Listar Receitas</title>
    </head>
    <body  class="body" background="imagemDeFundo.jpg">
        <center> <font size="3" face="arial" > <h1>Gasto Zero</h1></font></center><br/><br/><br/>
        <div class="style1" >
            <center>
                <font ><a href="Menu.jsp" class="texto" >MENU</a></font>&nbsp;&nbsp;&nbsp;&nbsp;
                <font class="texto" ><a class="texto"  href="CadastrarReceitas.jsp">VOLTAR<<</a></font>&nbsp;&nbsp;&nbsp;&nbsp;
                <font  class="texto"><a class="texto"  href="index.jsp">SAIR >></a></font>&nbsp;&nbsp;&nbsp;&nbsp;
            </center>
            <br/>
        </div>
        
        <div class="style3">
        <div class="">      
            <center>
                <h3>Escolha o mes da Receita!</h3>
                Mês: <select name="mes">
                    <option>01</option>
                    <option>02</option>
                    <option>03</option>
                    <option>04</option>
                    <option>05</option>
                    <option>06</option>
                    <option>07</option>
                    <option>08</option>
                    <option>09</option>
                    <option>10</option>
                    <option>11</option>
                    <option>12</option>
                </select>              
            </center>
            <br/>
            <center>    
                <table border="1">
                    <tr>
                        <th>ID RECEITA </th>
                        <th>DESCRICAO DA RECEITA</th>
                        <th>DATA</th>
                        <th>VALOR</th>
                        <th>ALTERAR</th>
                        <th>EXCLUIR</th>
                    </tr>
                    <c:forEach var="receitas"  items="${receitas}">
                        <tr>
                            <td>${receitas.id}</td>   
                            <td>${receitas.descricao}</td>
                            <td>${receitas.data}</td>
                            <td>${receitas.valor}</td>
                            <td><a href="ServletReceita?acao=alterar&id=${receitas.id}"><center><img src="alterar1.gif" width="25" height="25" /></center></a></td>
                            <td><a href="ServletReceita?acao=excluir&id=${receitas.id}"><center><img src="excluir1.gif" width="25" height="25"/></center></a></td>
                        </tr>
                    </c:forEach> 
                </table>
            </center> 
            <br/>
        </div>
    </body>
</html>